<?php
/** 
 * Created by RisingSun. 
 * User: MarkSpace 
 * Date: 20220306
 * Time: 11:05 
 */
return [
    'key'=>'daytrade',
    'listen'=>'websocket://0.0.0.0:9502',
    'sslstate'=>false,
    'context'=>[
        'ssl' => [
            // ssl证书
            'local_cert'        => base_path() . '/public/ssl/fullchain.pem', // 也可以是crt文件
            'local_pk'          => base_path() . '/public/ssl/privkey.key',
            'verify_peer'       => false,
            'allow_self_signed' => true, //如果是自签名证书需要开启此选项
        ],
    ],
    'cross'=>false,
    'linkurl'=>[
        'https://www.workerman.net',
        'http://127.0.0.1',
        'http://www.mt4.com'
    ],
    'daywebsocket'=>[
        'name'=>'Daysocketserver', //工作名称
        'count'=>1,  //设置进程数, 多进程设置有效
        'time' => 1,
        'static'=>'\day\controller\DaywebsocketController', //类
        //数据库设置
        'dbset'=>[
            'heartbeat'=> true, //设定数据库心跳
            'interval'=>55, //心跳间隔时间
            'dbtype'=>['mysql'], //需要设定心跳的数据库类型
        ],
    ]
];